<div class="layuimini-container layuimini-page-anim">
    <div class="layuimini-main">

        <form class="layui-form layui-form-pane">

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">日期选择</label>
                    <div class="layui-input-block">
                        <input type="text" name="startTime" id="endTime" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>

        </form>
    </div>
</div>
<script>
    layui.use(['table', 'form', 'tableSelect', 'laydate'], function () {
        var form = layui.form,
                layer = layui.layer,
                table = layui.table,
                laydate = layui.laydate,
                tableSelect = layui.tableSelect,
                $ = layui.jquery;

        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();

        //日期
        laydate.render({
            elem: '#endTime'
        });

    });
</script>